import java.sql.Connection;

public abstract class PropertyManager {

	private Connection connection;

	public PropertyManager(Connection initConnection) {
		// constructor - initialiaze connection
		// use this connection in all functions of AccountManager

		setConnection(initConnection);
	}

	public Connection getConnection() {
		return connection;
	}

	public abstract void loadProperties() throws DBManagerException;

	public abstract String getPropertyByKey(String key);

	public abstract void updateProperty(String key, Object value);

	public abstract Long getNextValue(String key);

	public abstract void saveProperies();

	public void setConnection(Connection connection) {
		this.connection = connection;
	}

}
